package com.dreamcar.auction.entity;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

/**
 * Suspension entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "suspension", catalog = "assignment")
@DiscriminatorValue("S")
@PrimaryKeyJoinColumn(name="id_suspension")
public class Suspension extends Component implements java.io.Serializable {

	// Fields

	private Integer idSuspension;
	private String size;

	// Constructors

	/** default constructor */
	public Suspension() {
	}

	/** minimal constructor */
	public Suspension(Integer idSuspension) {
		this.idSuspension = idSuspension;
	}

	/** full constructor */
	public Suspension(Integer idSuspension, String size) {
		this.idSuspension = idSuspension;
		this.size = size;
	}

	// Property accessors
	@Id
	@Column(name = "id_suspension", unique = true, nullable = false)
	public Integer getIdSuspension() {
		return this.idSuspension;
	}

	public void setIdSuspension(Integer idSuspension) {
		this.idSuspension = idSuspension;
	}

	@Column(name = "size", length = 45)
	public String getSize() {
		return this.size;
	}

	public void setSize(String size) {
		this.size = size;
	}

}